package com.mmall.couplet.controller;

import java.util.ArrayList;
import java.util.List;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.mmall.couplet.model.Carserver;
import com.mmall.couplet.service.CarserverService;

@Controller
public class CarserverController {

	@Resource
	private CarserverService carserverService;
	
	@RequestMapping("/carfuwu")
	public String carfuwu(HttpServletRequest request) throws Exception {
		List<Carserver> carserList = new ArrayList();
		carserList = carserverService.selectCarInfo();
		for (int i = 0; i < carserList.size(); i++) {
			Carserver carser = carserList.get(i);
			System.out.println(carser.getId());
			System.out.println(carser.getSerimgurl());
			System.out.println(carser.getSermapurl());
			System.out.println(carser.getSerremark());
		}
		return "carfuwu";
	}
}
